VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



vb.net -Add Controls To Form Using Codes [Not Using Tool Box]

by Gehan Fernando (47 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: VB.NET
Difficulty: Unknown Difficulty
Originally Published: Mon 1st October 2007
Date Added: Mon 8th February 2021
Rating: (1 Votes)

vb.net -Add Controls To Form Using Codes [Not Using Tool Box]

Rate vb.net -Add Controls To Form Using Codes [Not Using Tool Box]



        Dim Pnt As Point = New Point(10, 10)
        LstBox.Location = Pnt
        Dim MSize As Size = New Size(Me.Width - 30, Me.Height - 50)
        LstBox.Size = MSize
        Me.Controls.Add(LstBox)
        LstBox.Visible = True


        For i As Integer = 1 To 100
            LstBox.Items.Add("Item Index :- " & i)
        Next

Download this snippet    Add to My Saved Code

vb.net -Add Controls To Form Using Codes [Not Using Tool Box] Comments

No comments have been posted about vb.net -Add Controls To Form Using Codes [Not Using Tool Box]. Why not be the first to post a comment about vb.net -Add Controls To Form Using Codes [Not Using Tool Box].

Post your comment

Subject:
Message:
0/1000 characters